<template>
  <div class="wrapper">
    <router-view/>
    <tab-bar @tabTo="onTabTo"></tab-bar>
  </div>
</template>

<script>
  import TabBar from "./components/commen/TabBar";
  import utils from '@/assets/js/utils';

  export default {
    components: {TabBar},
    name: 'App',
    data() {
      return {}
    },
    created() {
      utils.initIconFont()
    },
    methods: {
      onTabTo(data) {
        let page = data.data.key;
        this.$router && this.$router.push('/' + page)
      }
    }
  }
</script>

<style scoped>

</style>
